package com.example.userserver.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.userserver.entity.ActivityInfoCollectEntity;

import javax.servlet.http.HttpServletResponse;


public interface ActivityService extends IService<ActivityInfoCollectEntity> {
    /**
     * 分页查询 时间逆序
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<ActivityInfoCollectEntity> getPage(Integer pageNum, Integer pageSize);

    /**
     * 提交
     * @param activityInfoCollectEntity
     * @return
     */
    Object addActivityInfo(ActivityInfoCollectEntity activityInfoCollectEntity);

    /**
     * 修改
     * @param activityInfoCollectEntity
     * @return
     */
    Object updateInfo(ActivityInfoCollectEntity activityInfoCollectEntity);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    Object deleteInfoById(String id);

    /**
     * 根据id获取详情
     * @param id
     * @return
     */
    ActivityInfoCollectEntity selectById(String id);

    /**
     * 导出
     * @param response
     */
    void exportInfo(HttpServletResponse response);


}
